import java.util.Scanner;

public class MC0427悟空求桃 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        int peaches = 1;
        for (int i = 1; i < n; i++) {
            peaches = (peaches + 1) * 2;
        }
        System.out.println(peaches);
        input.close();
    }
}
